package xing.design.pattern.create.factory.method;

import xing.design.pattern.create.factory.IBasic;

/**
 * @author xing
 * @date 2023/2/7 23:08:51
 */
public class Main {
    public static void main(String[] args) {
        BasicFactory1 basicFactory1 = new BasicFactory1();
        IBasic basic = basicFactory1.createBasic();
        BasicFactory2 basicFactory2 = new BasicFactory2();
        IBasic basic1 = basicFactory2.createBasic();
    }
}
